package org.example.demo_ottery.service;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.example.demo_ottery.controller.param.CreateActivityParam;
import org.example.demo_ottery.controller.param.PageParam;
import org.example.demo_ottery.dao.dataobject.ActivityDO;
import org.example.demo_ottery.service.dto.ActivityDTO;
import org.example.demo_ottery.service.dto.ActivityDetailDTO;
import org.example.demo_ottery.service.dto.CreateActivityDTO;
import org.example.demo_ottery.service.dto.PageListDTO;

public interface ActivityService {
    /**
     * 创建活动
     * @param param
     * @return
     */
    CreateActivityDTO createActivity(CreateActivityParam param);

    /**
     * 获取活动列表
     * @param param
     * @return
     */
    PageListDTO<ActivityDTO> findActivityList(PageParam param);

    /**
     * 获取活动详细信息
     * @param activityId
     * @return
     */
    ActivityDetailDTO getActivityDetail(Long activityId);

    void cacheActivity(Long activityId);
}
